<template>
  <div class="">
    子组件：
    <ul>
      <li>{{ msgSon }}</li>
      <li><input @input="$emit('input2', $event.target.value)" /></li>
      <li>{{ msgSon2 }}</li>
      <li><input @input="$emit('update:msgSon2', $event.target.value)" /></li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'son',
  model: {
    prop: 'msgSon',
    event: 'input2',
  },
  props: ['msgSon', 'msgSon2'],
};
</script>

<style lang="less" scoped>
</style>
